package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.CollectService;
import com.iwop.moto.service.ComplaintService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuwb 2016-07-20 08:55
 */
@Service
public class ComplaintServiceImpl extends BaseService implements ComplaintService {

    /**
     * 功能:新增投诉(订单)
     */
    public void insertComplaint (SuperRecordModel SRModel) {
        getSqlSession().insert("FComplaintMapper.insertComplaint",SRModel);
    }

    /**
     * 功能:修改投诉(订单)
     */
    public void updateComplaint(SuperRecordModel SRModel){
        getSqlSession().update("FComplaintMapper.updateComplaint",SRModel);
    }

    /**
     * 投诉订单 - 列表
     */
    public List<SuperRecordModel> findComplaintList(SuperRecordModel SRModel){
        return getSqlSession().selectList("FComplaintMapper.findComplaintList",SRModel);
    }

}
